package com.whoiszxl.cqrs.command;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * WMS仓库SKU表
 * </p>
 *
 * @author whoiszxl
 * @since 2022-03-18
 */
@Data
@Schema(description = "WMS仓库SKU表")
public class WarehouseSkuAddCommand implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "货架ID")
    private Long shelfId;

    @Schema(description = "商品SKU ID")
    private Long skuId;

    @Schema(description = "商品sku编号")
    private String skuCode;

    @Schema(description = "商品SKU名称")
    private String skuName;

    @Schema(description = "商品采购价格")
    private BigDecimal purchasePrice;

    @Schema(description = "商品长度")
    private BigDecimal length;

    @Schema(description = "商品宽度")
    private BigDecimal width;

    @Schema(description = "商品高度")
    private BigDecimal height;

    @Schema(description = "商品毛重")
    private BigDecimal grossWeight;

    @Schema(description = "乐观锁")
    @Version
    private Long version;

    @Schema(description = "逻辑删除 1: 已删除,  0: 未删除")
    @TableLogic
    private Integer isDeleted;

    @Schema(description = "创建者")
    private String createdBy;

    @Schema(description = "更新者")
    private String updatedBy;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;


}
